﻿@using Webdiyer.WebControls.Mvc

@model PagedList<WebShop.Contracts.Product>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>

@if (!String.IsNullOrEmpty(ViewBag.q))
{
    <div class='searchingTerm'>
        <label>You are looking: <b>@ViewBag.q</b></label>
    </div>
}
@{ Html.RenderPartial("_ProductList", Model); }
